﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="EditFace.aspx.cs" Inherits="Cn.Cellula.Website.Admin.User.EditFace" Title="编辑头像" %>
<%@ Register src="../Wuc/WUC_UserEditMenu.ascx" tagname="WUC_UserEditMenu" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="/Cellula_client/ImagePreview/CJL.0.1.min.js"></script>

    <script type="text/javascript" src="/Cellula_client/ImagePreview/ImagePreview.js"></script>

    <script type="text/javascript">
        var imgPreview = null;
        function PageOnLoad(){
            imgPreview = new ImagePreview( $$(fixId("file_Face")), $$(fixId("img_Face")), {
	            maxWidth: 300, maxHeight: 200, action: ""
            });
            //imgPreview.img.src = ImagePreview.TRANSPARENT;
            imgPreview.file.onchange = function(){ imgPreview.preview(); };
       }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
编辑头像
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <uc1:WUC_UserEditMenu ID="WUC_UserEditMenu1" runat="server" />
    <div class="action_bar">
        <asp:Button ID="btn_save" runat="server" Text="保存" OnClick="btn_save_Click" />
        <input type="reset" value="重置" />
    </div>
    <fieldset>
        <legend>头像：<asp:Label runat="server" ID="lab_UserName"></asp:Label>(<asp:Label runat="server" ID="lab_LoginName"></asp:Label>)</legend>
        <div style="width: 300px; padding: 2px 2px 2px 2px; height: 200px; overflow: hidden;
            border: 1px solid #cccccc; text-align: center;">
            <asp:Image runat="server" ID="img_Face" ImageUrl="/cellula_client/controls/images/face_default.gif" /></div>
        <div>
            <input type="file" runat="server" style="width: 300px;" id="file_Face" />
            <asp:HiddenField runat="server" ID="hid_CoverFileKey" />
        </div>
    </fieldset>
</asp:Content>
